//
//  ProductObject.h
//  PurchasingMeeting
//
//  Created by zhuang yihang on 7/10/13.
//  Copyright (c) 2013 YX. All rights reserved.
//

#import <Foundation/Foundation.h>

@class FMResultSet;

/*
 该类定义了商品属性，如商品的价格，图片，名称等信息
 */

@interface ProductObject : NSObject{
    NSDictionary *_keyObject;
}

@property (nonatomic, retain) NSDictionary *keyObject;

@property (nonatomic, strong) NSString *pCode;//产品编号，唯一标识
@property (nonatomic, strong) NSString *pName;//产品种类名称
@property (nonatomic, assign) float pSale;//产品销售价格
@property (nonatomic, assign) int pSizeGroupID;
@property (nonatomic, strong) NSString *pColor;//产品颜色
@property (nonatomic, strong) NSString *pColorCode;//产品颜色代码
@property (nonatomic, strong) NSString *pSerial;//产品所属系列名称
@property (nonatomic, strong) NSString *pSerialCode;//产品所属系列名称代码
@property (nonatomic, strong) NSString *pType;//产品款式名称
@property (nonatomic, strong) NSString *pTypeCode;//产品款式名称代码
@property (nonatomic, strong) NSString *pSeason;//产品季节名称
@property (nonatomic, strong) NSString *pSeasonCode;//产品季节名称代码
@property (nonatomic, strong) NSString *pIntroDate;//产品年份
@property (nonatomic, strong) NSString *pIntroDateCode;//产品年份代码
@property (nonatomic, strong) NSString *pExihibition;//产品所在展厅
@property (nonatomic, strong) NSString *pNote;//产品备注
@property (nonatomic, strong) NSString *pRecommend;//推荐类型名称
@property (nonatomic, assign) int pRecommendCode;//推荐类型编号
//@property (nonatomic, assign) float pRatio;//折扣
@property (nonatomic, strong) NSString *pURL;//产品图片
@property (nonatomic, strong) NSString *pThumbURL;
@property (nonatomic, strong) NSString *pZhanting;//展厅
@property (nonatomic, strong) NSString *pFengge;//风格
@property (nonatomic, strong) NSString *pBanxing;//版型
@property (nonatomic, strong) NSString *pxilie;//系列
@property (nonatomic, strong) NSString *pxilieCode;//系列代码
@property (nonatomic, strong) NSString *n_status;//sku状态
@property (nonatomic, strong) NSString *n_jiny;//是否禁用
@property (nonatomic, strong) NSString *n_beis;//倍数订货
@property (nonatomic, strong) NSString *item5;//最小起订量
@property (nonatomic, strong) NSString *simCode;//简码
@property (nonatomic, strong) NSString *mianliao;//面料

@property (nonatomic, assign) BOOL isordering;

//是否是同一款产品
- (BOOL)isTheSameProduct:(ProductObject *)product;


- (id)getValueByKey:(NSString *)key;


- (NSString *)pColor;

@end
